package com.situ.spring.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.situ.spring.service.ICourseService;
// @Controller  @Service  @Repository 作用是一样，起不同的名字主要是为了区分这三层 @Component
// @Controller
@Controller("courseController")
public class CourseController {
	@Resource(name = "courseService")
	private ICourseService courseService;
	
	public void selectAll() {
		System.out.println("CourseController.selectAll()");
		courseService.selectAll();
	}

}
